

cd `dirname $0`


TOOLCHAIN=$1
# TOOLCHAIN=${TOOLCHAIN:-arm-himix200-linux}


# rm -fr cmake-shell-${TOOLCHAIN}
mkdir -p cmake-shell-${TOOLCHAIN}
cd cmake-shell-${TOOLCHAIN}
# cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchain/${TOOLCHAIN}.toolchain.cmake .. || exit 1
#VERBOSE=1 
#make -j`nproc`
cmake ..
make
#make install
